/*
 ============================================================================
 Name		: QQReaderModule.h
 Author	  : rockling
 Version	 : 1.0
 Copyright   : Your copyright notice
 Description : CQQReaderModule declaration
 ============================================================================
 */

#ifndef QQREADERMODULE_H
#define QQREADERMODULE_H

// INCLUDES
#include <e32std.h>
#include <e32base.h>
#include <hwrmlight.h> 

#include "Symbian_QFile.h"
#include "QArray.h"

// CLASS DECLARATION

//class CQBookCityBookInfoPage;
/**
 *  CQQReaderModule
 * 
 */
class CQQReaderModule : public CBase
	{
public:
	enum EView
	{
	E_VIEW_LIST,
	E_VIEW_DISP,
	E_VIEW_READ,
	E_VIEW_BOOKSHELF,
	E_VIEW_NAVIGATE,
	E_VIEW_SEARCH,
	E_VIEW_FILEM,
	E_VIEW_BOOKMARK,
	E_VIEW_BOOKINFO,
	E_VIEW_TEXT_INFO
	};
	
public:
	// Constructors and destructor

	/**
	 * Destructor.
	 */
	~CQQReaderModule();

	/**
	 * Two-phased constructor.
	 */
	static CQQReaderModule* NewL();

	/**
	 * Two-phased constructor.
	 */
	static CQQReaderModule* NewLC();

private:

	/**
	 * Constructor for performing 1st stage construction
	 */
	CQQReaderModule();

	/**
	 * EPOC default constructor for performing 2nd stage construction
	 */
	QVOID ConstructL();
	
public:
	void DelayExitL();
	QVOID OnExit();
	QVOID Exit();
	
private:
	static TInt ExitPeriod(TAny * aPtr);
	static int OnDelayExitL(TAny * aPtr);
	
private:
	CPeriodic*     iDelayExitTimer;
	};

#endif // QQREADERMODULE_H
